#!/bin/bash
BUILD_ID=DONTKILLME
echo "===========start Application==========="
cd /usr/local/myjar/portal
nohup java -server -Xms640m -Xmx1g -Xmn1g -XX:+UseG1GC -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -XX:SoftRefLRUPolicyMSPerMB=0 -verbose:gc -Xloggc:/dev/shm/portal/dj_portal_gc_%p_%t.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintAdaptiveSizePolicy -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/dj/portal/dump -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=30m -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -Ddj.server.port=8181 -Dspring.profiles.active=pro -Ddj.app.name=dj-portal -Ddj.log.workdir=/data/logs/dj-portal -Ddj.env.logger.level=info -Ddj.server.version=1.0.0 -jar dj-music-portal-boot-0.0.1-SNAPSHOT.jar > /dev/null 2>&1 &
